/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * This file is part of retabel.
 *
 * Copyright (c) 2011 by individual contributors as indicated by the
 * @author tags. See the copyright.txt file in the distribution
 * for a full listing of individual contributors.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */

package org.retabel.ui;

import java.net.URI;

/**
 * Rendered document part UI bean
 * <p/>
 * <h3>Extra-Info</h3>
 * Created: 20:39 08.09.11
 *
 * @author Peter Herber
 * @version 1.0
 */
public class RenderedDocumentPartUI {

    /** the rendered document part id */
    private int id;

    /** the rendered document part mime type */
    private String mimeType;

    /** the rendered document part filename */
    private String filename;

    /** the rendered document part download uri */
    private URI uri;

    // beans

    /**
     * Sets the mimeType.
     *
     * @param newMimeType The mimeType value to set.
     */
    public void setMimeType(String newMimeType) {
        this.mimeType = newMimeType;
    }

    /**
     * Sets the id.
     *
     * @param newId The id value to set.
     */
    public void setId(int newId) {
        this.id = newId;
    }

    /**
     * Gets the mimeType.
     *
     * @return The mimeType value.
     */
    public String getMimeType() {
        return mimeType;
    }

    /**
     * Sets the uri.
     *
     * @param newUri The uri value to set.
     */
    public void setUri(URI newUri) {
        this.uri = newUri;
    }

    /**
     * Gets the uri.
     *
     * @return The uri value.
     */
    public URI getUri() {
        return uri;
    }

    /**
     * Gets the id.
     *
     * @return The id value.
     */
    public int getId() {
        return id;
    }

    /**
     * Sets the filename.
     *
     * @param newFilename The filename value to set.
     */
    public void setFilename(String newFilename) {
        this.filename = newFilename;
    }

    /**
     * Gets the filename.
     *
     * @return The filename value.
     */
    public String getFilename() {
        return filename;
    }
}
